# -*- coding:utf-8 -*-
import os

from common.import_pyside import *
from common.data import DB
from execute import Run


class Main(QWidget):
    def __init__(self, parent=None):
        super(Main, self).__init__(parent=parent)
        self.main_execute_now = QPushButton("立即执行")
        self.main_execute_now.clicked.connect(self.main_execute_now_click)
        Hlayout = QHBoxLayout()
        Hlayout.addWidget(self.main_execute_now)
        layout = QStackedLayout()
        bu1 = QPushButton("1")
        bu2 = QPushButton("2")
        bu3 = QPushButton("3")
        bu4 = QPushButton("4")

        layout.addWidget(bu1)
        layout.addWidget(bu2)
        layout.addWidget(bu3)
        layout.addWidget(bu4)
        layout.setCurrentIndex(3)



        self.setLayout(Hlayout)

    def main_execute_now_click(self):
        Run()



if __name__ == '__main__':
    app = QApplication()
    win = Main()
    win.show()
    app.exec()
